package lab02.Test09;

public class Student {
    private long stuNum;
    private long id;
    private String name;
    private char sex;
    private int age;
    public long getStuNum() {
        return stuNum;
    }
    public long getId() {
        return id;
    }
    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }
    public char getSex() {
        return sex;
    }
    public String toString(long stuNum, long id, String name, char sex, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.stuNum = stuNum;
        String msg = "姓名：" + name + "学号：" + id + "班号：" + stuNum + "性别：" + sex + "年纪：" + age;
        return msg;
    }
}
